#include "zmath.h"

int zmath_getnextpowof2(int input)
{
	int ret = 1;
	if (0 == input)
	{
		return 1;
	}

	if (1 == input)
	{
		return 1;
	}

	while (ret < input)
	{
		ret = ret << 1;
	}	
	return ret;
}
